﻿using AbpDemo;
using System;
using System.Collections.Generic;

namespace Chen.IdentityServer4
{
    /// <summary>
    /// 员工表
    /// </summary>
    public class SysUser : BaseIntEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public string LoginNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 密码错误次数用于锁定用户
        /// </summary>
        public int ErrorNumber { get; set; }
        /// <summary>
        /// 1是管理员 2二级管理 3 三级管理
        /// </summary>
        public int IsAdmin { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public int? IsLock { get; set; }
        /// <summary>
        /// 锁定时间
        /// </summary>
        public DateTime? LockTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 用户权限最后更新时间  如果没变就不用重新授权
        /// </summary>
        public DateTime UserRightLastUpdateTime { get; set; }
    }
}
